package com.cg.cn.p2_HomeWork;

import java.util.Scanner;

public class Test {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        System.out.println("请输入[1,7]之前的数字");
        int n = sc.nextInt();

        getJfHd(n);
    }

    public static void getJfHd(int n) {
        if (n <= 0 || n > 7) {
            System.out.println("请输入合法数字");
        } else if (n == 1) {
            System.out.println("跑步");
        } else if (n == 2) {
            System.out.println("慢走");
        } else if (n == 3) {
            System.out.println("动感单车");
        } else if (n == 4) {
            System.out.println("游泳");
        } else if (n == 5) {
            System.out.println("拳击");
        } else if (n == 6) {
            System.out.println("爬山");
        } else {
            System.out.println("好好吃一顿");
        }
    }
}


